#!/usr/bin/env python
#coding:utf-8

class RefactorExample(wx.Frame):
    def __init__(self, parent, id):
        wx.Frame.__init(self, parent, id, 'Refactor Example', size=(340,200))
        panel = wx.Panel(self, -1)
        panel.SetBackgroundColour("White")
        #绑定向前按键事件
        prevButton = wx.Button(panel, -1, "<<Prev", pos(80,0))
        self.Bind(wx.EVT_BUTTON, self.OnPrev, prevButton)
        #绑定向后按钮事件
        nextButton = wx.Button(panel, -1, "Next>>", pos(160,0))
        self.Bind(wx.EVT_BUTTON, self.OnNext, nextButton)

        #关闭窗口事件
        self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)

        menuBar = wx.MenuBar() #创建菜单栏
        menu1 = wx.Menu() #创建菜单
        openMenuItem = menu1.Append(-1,"&Copy", "Copy in status bat")
        self.Bind(wx.EVT_MENU, self.OnOpen, openMenuItem)

        quitMenuItem = menu1.Append(-1, "&Quit", "Quit")
        self.Bind(wx.EVT_MENU, self.OnCloseWindow, quitMenuItem)

        menuBar.Append(menu1, "&Files")

        menu2 = wx.Menu()
        copyItem = menu2.Append(-1, "&Copy", "Copy")
        self.Bind(wx.EVT_MENU, self.OnCopy, copyItem)
        cutItem = menu2.Append(-1,"C&ut" "Cut")
        self.Bind(wx.EVT_MENU, self.OnCut, cutItem)
        pasteItem = menu2.Append(-1, "&Paste", "paste")
        self.Bind(wx.EVT_MENU, self.OnPaste, pasteItem)
        menuBar.Append(menu2,"Edit")
        self.SetMenuBar(menuBar)

        static = wx.StaticText(panel, wx.NewId(), "First Name", pos = (10, 50))
        
        
